﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Dto.Common;

namespace WCS.Infrastructure.Dto.Request.Order
{
    /// <summary>
    /// 订单查询请求对象
    /// </summary>
    public class OrderQueryRequestDto:BaseRequestDto
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        [StringLength(32)]
        public string? Id { get; set; }

        /// <summary>
        /// 易票联订单号（商户单号）
        /// </summary>
        public string? TransactionNo { get; set; }

        /// <summary>
        /// 收款码ID
        /// </summary>
        [StringLength(32)]
        public string? CodeId { get; set; }

        /// <summary>
        /// 门店ID
        /// </summary>
        [StringLength(32)]
        public string? StoreId { get; set; }

        /// <summary>
        /// 商户ID
        /// </summary>
        [StringLength(32)]
        public string? MerchantId { get; set; }

        /// <summary>
        /// 支付状态(0=处理中，1=支付成功​，2=支付失败​​，3=已撤销，4=已关闭，5=已超时​​)
        /// </summary>
        public int PaymentStatus { get; set; } = 1;

        /// <summary>
        /// 是否有分账协议
        /// </summary>
        public bool? IsDividedAgreement { get; set; }

        /// <summary>
        /// 查询开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 查询结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
    }
}
